Skip to content

traits: preallocate 2 Vecs of known initial size#69022

Merged
bors merged 1 commit intorust-lang:masterfrom
ljedrz:traits_tweak_vecs
Feb 11, 2020
Merged

traits: preallocate 2 Vecs of known initial size#69022
bors merged 1 commit intorust-lang:masterfrom
ljedrz:traits_tweak_vecs

Conversation

@ljedrz
Copy link
Contributor

@ljedrz ljedrz commented Feb 10, 2020

The 2 preallocations are pretty obvious; both vectors will be as big as or larger than the collections they are created from.

In WfPredicates::normalize the change from a functional style improves readability and should be perf-friendly, too.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

relnotes Marks issues that should be documented in the release notes of the next release. relnotes-perf Performance improvements that should be mentioned in the release notes. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants